package com.qingneng.budget.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.qingneng.budget.vo.Company;

public class CompanyDAOImpl extends SqlMapClientDaoSupport implements ICompanyDAO {

	public List queryCompanyInfo() {
		List list = getSqlMapClientTemplate().queryForList("company.select_companyInfo_sql");
		return list;
	}

	public void saveCompanyInfo(Company company) {
		getSqlMapClientTemplate().insert("company.abatorgenerated_insert", company);
	}
	
	public void updateCompanyInfo(Company company){
	   this.getSqlMapClientTemplate().update("company.abatorgenerated_updateByPrimaryKeySelective", company);
	}
	
	public void deletecompanyInfo(Company company){
		this.getSqlMapClientTemplate().delete("company.abatorgenerated_deleteByPrimaryKey", company);
	}
}